package com.g7.figmaapi.user.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("user_authorization")
public class UserAuthorization implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField(value = "user_id")
    private Long userId;

    @TableField(value = "ext_id")
    private String extId;

    @TableField(value = "access_token")
    private String accessToken;

    @TableField(value = "refresh_token")
    private String refreshToken;

    @TableField(value = "expires_in")
    private Long expiresIn;

    @TableField(value = "scopes")
    private String scopes;

    @TableField(value = "channel_type")
    private String channelType;

    @TableField(value = "channel_id")
    private String channelId;

    @TableField(value = "authorization_source")
    private String authorizationSource;

    @TableField(value = "authorization_time")
    private Date authorizationTime;

    @TableField(value = "refresh_time")
    private Date refreshTime;

    @TableField(value = "create_time")
    private Date createTime;

    @TableField(value = "data_remark")
    private String dataRemark;

    @TableField(value = "version_remark")
    private String versionRemark;

    @TableField(value = "vno")
    private Date vno;

    @TableField(value = "is_enabled")
    private Byte isEnabled;


}
